package com.bnz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_seckill_goods")
public class TbSeckillGoods {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * spu ID
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * sku ID
     */
    @TableField(value = "item_id")
    private Long itemId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 商品图片
     */
    @TableField(value = "small_pic")
    private String smallPic;

    /**
     * 原价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 秒杀价格
     */
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    /**
     * 商家ID
     */
    @TableField(value = "seller_id")
    private String sellerId;

    /**
     * 添加日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 审核日期
     */
    @TableField(value = "check_time")
    private Date checkTime;

    /**
     * 审核状态
     */
    @TableField(value = "status")
    private String status;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 秒杀商品数
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 剩余库存数
     */
    @TableField(value = "stock_count")
    private Integer stockCount;

    /**
     * 描述
     */
    @TableField(value = "introduction")
    private String introduction;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_ITEM_ID = "item_id";

    public static final String COL_TITLE = "title";

    public static final String COL_SMALL_PIC = "small_pic";

    public static final String COL_PRICE = "price";

    public static final String COL_COST_PRICE = "cost_price";

    public static final String COL_SELLER_ID = "seller_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CHECK_TIME = "check_time";

    public static final String COL_STATUS = "status";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_NUM = "num";

    public static final String COL_STOCK_COUNT = "stock_count";

    public static final String COL_INTRODUCTION = "introduction";
}